package com.sie.zhq.module;

import android.os.Bundle;

/**
 * Created by zhq on 2017/1/18.
 */

public class ModuleRunnable implements Runnable {

    protected volatile boolean runFlag = true;
    protected DeviceCallback callback;
    protected int timeOutMs;
    protected boolean isOnMain;

    public boolean isRunFlag() {
        return runFlag;
    }

    public void stopRun() {
        this.runFlag = false;
    }

    protected boolean isFinish = false;

    public boolean isFinish() {

        return isFinish;
    }
    @Override
    public void run() {


    }
    protected static void deliverResult(final DeviceCallback callback, DeviceInterface.Result result, Bundle bundle, boolean onMainThread) {

        DeviceInterface.deliverResult(callback, result, bundle, onMainThread);

    }
}
